package com.xyq.fs.views;


import javafx.scene.control.Alert;


public class MyAlert {

	public static void alert(String msg){
		
		Alert information = new Alert(Alert.AlertType.INFORMATION,msg);
		information.setTitle("操作提示"); //设置标题，不设置默认标题为本地语言的information
		information.setHeaderText(""); 	
		information.showAndWait(); 
	}
	
    public static void alertError(String msg){
		
		Alert information = new Alert(Alert.AlertType.ERROR,msg);
		information.setTitle("错误提示"); //设置标题，不设置默认标题为本地语言的information
		information.setHeaderText(""); 	
		information.showAndWait(); 
		
	}


}
